<!DOCTYPE html>
<html>
<meta charset="UTF-8">

<head>
    <title>SSE Example</title>
</head>

<body>
    <h1>SSE Example</h1>
    <button id="startButton">开始</button>
    <div id="output">回答：</div>
    <ul>
        <li>d</li>
        <li>22</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
    </ul>
    <script>
      

        // const source = new EventSource('http://localhost:8088/sse');
        //     source.onmessage = (event) => {
        //     console.log(event);
        // };
        // source.onerror = (event) => {
        //     console.log(event);
        //     // source.close()
        // };
        
    </script>
</body>

</html>